package com.nengchuan.eic.nceconomy.entity.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 模板字典表
 * </p>
 *
 * @author luoping
 * @since 2020-04-23
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("nc_template_dic")
@ApiModel(value="TemplateDic对象", description="模板字典表")
public class TemplateDic implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.NONE)
    private Long id;

    @ApiModelProperty(value = "父节点")
    private Long parentId;
    @ApiModelProperty(value = "模板id")
    private Long templateFileId;

    @ApiModelProperty(value = "sheet名")
    private Long sheetId;

    @ApiModelProperty(value = "列开始坐标")
    private Integer rowStartCoordinates;
    @ApiModelProperty(value = "列结束坐标")
    private Integer rowEndCoordinates;
    @ApiModelProperty(value = "行开始坐标")
    private Integer lineStartCoordinates;
    @ApiModelProperty(value = "行结束坐标")
    private Integer lineEndCoordinates;

    @ApiModelProperty(value = "名称")
    private String value;

    @ApiModelProperty(value = "单位")
    private String unit;

    @ApiModelProperty(value = "顺序")
    private Integer sequence;

    @ApiModelProperty(value = "1-行名  2-列名")
    private Integer classify;

    @ApiModelProperty(value = "逻辑删除（0：有效 1：删除）")
    @TableLogic
    private Integer delFlag;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建人id")
    @TableField(fill = FieldFill.INSERT)
    private Long createId;

    @ApiModelProperty(value = "创建人姓名")
    @TableField(fill = FieldFill.INSERT)
    private String createName;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Long createTime;

    @ApiModelProperty(value = "修改人id")
    @TableField(fill = FieldFill.UPDATE)
    private Long modifyId;

    @ApiModelProperty(value = "修改人姓名")
    @TableField(fill = FieldFill.UPDATE)
    private String modifyName;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.UPDATE)
    private Long modifyTime;


}
